﻿@{
    Layout = null;
}


<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>天泽电子物料管理系统</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">
    <link href="~/css/newlogin.css" rel="stylesheet" />
    <link href="~/layuiadmin/layui/css/layui.css" rel="stylesheet" />
    <style>
        .layui-form-radio {
            margin: 6px 76px 0 0;
        }
    </style>
</head>
<body class="page-login layout-full page-dark">
    <div class="page height-full">
        <div class="page-content height-full">
            <div class="page-brand-info vertical-align animation-slide-left hidden-xs">
                <div class="page-brand vertical-align-middle">
                    <div class="brand">
                    </div>
                    <h2 class="hidden-sm">天泽电子物料管理系统</h2>
                    <ul class="list-icons hidden-sm" style="color:#fff">
                        <li>
                            欢迎您
                        </li>
                    </ul>
                </div>
            </div>
            <div class="page-login-main animation-fade">
                <div class="vertical-align">
                    <div class="vertical-align-middle">
                        <div class="brand visible-xs text-center">
                        </div>
                        <h3 class="hidden-xs">登录</h3>
                        <p class="hidden-xs">beta</p>
                        <div class="login-form">
                            <form class="layui-form" name="loginForm" method="post">
                                <div class="layui-form-item input-item">
                                    <label for="uname">手机号</label>
                                    <input type="text" placeholder="请输手机号" id="phone" name="phone" autocomplete="off" class="layui-input" lay-verify="required">
                                </div>
                                <div class="layui-form-item input-item">
                                    <label for="upass">密码</label>
                                    <input type="password" placeholder="请输入密码" autocomplete="off" id="password" name="Password" class="layui-input" lay-verify="required">
                                </div>
                              @*   <div class="layui-form-item input-item" id="imgCode">
                                    <label for="code">验证码</label>
                                    <input type="text" placeholder="请输入验证码" autocomplete="off" id="verifyCode" name="verifyCode" class="layui-input" lay-verify="required">
                                    <img title="点击刷新" style="cursor:pointer;height: 36px;" id="dvcode" name="dvcode">
                                </div> *@
                                <div class="layui-form-item">
                                    <a class="layui-btn layui-block btn-submit" lay-filter="login" lay-submit>登录</a>
                                </div>
                                <div class="layui-form-item">
                                    <a style="margin-top: 7px;margin-left:150px" id="forget_pwd">忘记密码？</a>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <footer class="page-copyright">
                    <p>
                        天泽电子 &copy;
                    </p>
                </footer>
            </div>
        </div>
    </div>
    <script src="~/lib/jquery/dist/jquery.js"></script>
    <script src="~/layuiadmin/layui/layui.js"></script>
    <script src="~/js/form.js"></script>
    <script src="~/js/login.js"></script>
    <script src="~/layuiadmin/layuiexpand/global.js"></script>
    <script>
        // $("#dvcode").click(GetYzcode);
        // function GetYzcode() {
        //     $.post("/Login/YzCode", function (ret) {
        //         $("#dvcode").attr("src", ret);
        //     });
        // }
        // GetYzcode();
        $(document).keyup(function (event) {
            if (event.keyCode == 13) {
                var swal = $('.sweet-overlay').css('display');
                if (swal == 'block') {
                }
                else {
                    $(".btn-submit").click();
                }
            }
        })
        $("#forget_pwd").click(function () {
            var phone = $('#phone').val();
            var identity = $('#identity:checked').val();
            layer.open({
                type: 2,
                title: '忘记密码',
                area: ['350px', '390px'],
                content: "/Login/ForgetPwd?phone=" + phone + "&identity=" + identity,
                success: function (layero, index) {
                },
                yes: function (index, layero) {
                    layero.find("iframe").contents().find("#btn_submit").click();
                }
            });
        });
    </script>
</body>
</html>


